package com.sdstc.modules.service;

import com.ruoyi.common.base.BaseService;
import com.ruoyi.common.core.domain.entity.SysDictData;
import com.sdstc.modules.eneity.PersonEntity;
import com.sdstc.modules.vo.OrgTreeVo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author ：wk
 * @date ：Created in 2022/10/23 13:26
 */
public interface PersonService extends BaseService<PersonEntity> {

    PersonEntity savePerson(PersonEntity person);

    PersonEntity updatePerson(PersonEntity person);

    void deletePersonById(String id);

    List<PersonEntity> getPersonPage(PersonEntity person, List<SysDictData> jobLevelDictData, Map<String, OrgTreeVo> orgId2Map);

    void importPersonByExcel(HttpServletResponse response, MultipartFile file, String orgId) throws IOException;

    void importPersonByNewExcel(HttpServletResponse response, MultipartFile file, String orgId) throws IOException;

    HashMap<String, Object> getEducationChart();

    HashMap<String, Object> getAgeChart();

    void exportEducationExcel(HttpServletResponse response);

    void exportAgeExcel(HttpServletResponse response);

}
